package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-11-24
 * @description:
 **/

@Entity
@Table(name = "t_base_soil_equipment")
@NoArgsConstructor
public class BaseSoilEquipment extends BaseEntity {

    /**
     * 坐标id (点位)
     */
    @Column(name = "base_soil_id", length = 32)
    private String baseSoilId;

    /**
     * 地块id
     */
    @Column(name = "massif_id", length = 32)
    private String massifId;

    /**
     * 设备id
     */
    @Column(name = "equipment_id", length = 32)
    private String equipmentId;

    /**
     * appid
     */
    @Column(name = "app_id", length = 32)
    private String appId;

    /**
     * 设备类型
     */
    @Column(name = "type", length = 30)
    private String type;

    /**
     * 坐标
     */
    @Column(name = "coordinate", length = 2000)
    private String coordinate;

    /**
     * 绑定的企业
     */
    @Column(name = "company_id", length = 32)
    private String companyId;

    /**
     * 设备名称
     */
    @Column(name = "equipment_name", length = 50)
    private String equipmentName;

    public BaseSoilEquipment(String equipmentId, String baseSoilId) {
        this.equipmentId = equipmentId;
        this.baseSoilId = baseSoilId;
    }

    public String getBaseSoilId() {
        return baseSoilId;
    }

    public void setBaseSoilId(String baseSoilId) {
        this.baseSoilId = baseSoilId;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    @Override
    public String toString() {
        return "BaseSoilEquipment{" +
                "baseSoilId='" + baseSoilId + '\'' +
                ", massifId='" + massifId + '\'' +
                ", equipmentId='" + equipmentId + '\'' +
                ", appId='" + appId + '\'' +
                ", type='" + type + '\'' +
                ", coordinate='" + coordinate + '\'' +
                ", companyId='" + companyId + '\'' +
                ", equipmentName='" + equipmentName + '\'' +
                '}';
    }

    public String getMassifId() {
        return massifId;
    }

    public void setMassifId(String massifId) {
        this.massifId = massifId;
    }
}
